Skip to content

Implement MallocSizeOf for SmallVec (v2) #369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 11, 2025
Merged

Implement MallocSizeOf for SmallVec (v2) #369

merged 2 commits into from
Mar 11, 2025

Conversation

nicoburns
Copy link
Contributor

Now that malloc_size_of is published to crates.io we are moving the trait implementations of MallocSizeOf and related traits into the crates that define the types. This will avoid the situation where depending on malloc_size_of pulls in a large number of dependencies.

This PR adds the implementation of MallocSizeOf to the 2.x version of the smallvec crate.

@nicoburns
Copy link
Contributor Author

Not sure why this is failing CI it's complaining about malloc_size_of not existing on crates.io. But it definitely does (https://crates.io/crates/malloc_size_of), and the other CI jobs are finding it. Some kind of caching issue?

@nicoburns
Copy link
Contributor Author

Turns out this was failing due to using Cargo features (dep: syntax) that were unsupported in Cargo 1.57. This has been resolved by removing the use of those features in malloc_size_of.

@mbrubeck mbrubeck added this pull request to the merge queue Mar 11, 2025
Merged via the queue into v2 with commit 30c30a6 Mar 11, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants